﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace KL.UFrame.Data.Entities
{
    /// <summary>
    /// 授权访问的客户端
    /// </summary>
    public class OAuthClient
    {
        [Key]
        [MaxLength(32)]
        [Column(TypeName = "char")]
        public string ClientId { get; set; }

        [MaxLength(32)]
        [Required]
        [Column(TypeName = "char")]
        public string ClientSecret { get; set; }

        [MaxLength(50)]
        public string Title { get; set; }

        [MaxLength(200)]
        public string Remark { get; set; }

        [MaxLength(1024)]
        public string Icon { get; set; }

        [MaxLength(1024)]
        public string Url { get; set; }

        [Required]
        public bool IsEnable { get; set; }

        [Required]
        public DateTime CreateTime { get; set; }
    }
}